import { UserInfo } from './../domains/user.domain';
import { Injectable } from "@angular/core";

@Injectable({
  providedIn: 'root',
})

export class UserService {
  private userInfo: UserInfo = new UserInfo();

  constructor(){}

  // 获取未读消息条数
  get getUnReadCnt() {
    return this.userInfo.unReadCnt;
  }

  // 设置未读消息条数
  setUnReadCnt(cnt: number) {
    this.userInfo.unReadCnt = cnt;
  }

}
